<?php
namespace app\home\controller;

class Scalping extends ControllerBase {
	public function _initialize() {
		$this -> checkLogin();
	}

	public function index() {
		$userId = \think\Session::get('user_id');

		$this -> view -> assign('totalHelpToRichWaiting', \app\common\model\HelpToRich::where('status in(0, 1, 2) AND user_id = '. $userId) -> count());

		$this -> view -> assign('totalHelpToUpstartWaiting', \app\common\model\HelpToUpstart::where('status in(0, 1, 2) AND user_id = '. $userId) -> count());
        return $this -> view -> fetch();
	}
}
?>